
import android.graphics.Bitmap;
import android.graphics.Canvas;


public class Image extends GraphicalObject{

	public static final int TYPE_BITMAP = 1;
	public static final int TYPE_VECTOR = 2;
	
	
	private Bitmap bitmap;
	private String name;
	
	public Image(Bitmap bm){
		bitmap = bm;
	}
	
	public Image(Bitmap bm,String n){
		name = n;
		bitmap = bm;
	}
	
	public void setName(String n){
		name = n;
	}
	
	public String getName(){
		return name;
	}

	@Override
	public void draw(Canvas c) {
		c.drawBitmap(this.bitmap, this.getPosX(), this.getPosY(), this.getPaint());
		
	}


}
